package god.services;

import god.interfaces.RetangleServiceImpl;
import god.model.RetangleVO;

public class RetangleService implements RetangleServiceImpl {

	@Override
	public void getArea(RetangleVO re) {
		double area = re.getWidth() * re.getHeight();
		re.setArea(area);
	}

	@Override
	public void getPerimeter(RetangleVO re) {
		double perimeter = ( re.getWidth() + re.getHeight() ) * 2;
		re.setPerimeter(perimeter);
	}
}
